﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OOP
{
    class EnumDemo1
    {
        static void Main(string[] args)
        {
            Person person = new Person();
            person.ID = 1;
            person.Name = "Jack";
            person.level = Level.BigBoss;

            Person person1 = new Person();
            person1.level = Level.Boss;

            Console.WriteLine(person.level>person1.level);
        }
    }
    enum Level
    {
        //不赋值对应数字，0,1,2,3
        //赋值100，对应数字 100,101,102,103
        Employee=100,
        Manager,
        Boss,
        BigBoss,
    }

    class Person
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public Level level { get; set; }


    }

}